var q6 ="#fUI/RunnerGame.img/RunnerGameUI/UI/Point/1#"
var q1 ="#fUI/SoulUI.img/DungeonMap/icon/dungeonItem/0#"
var zh5 ="#fUI/Gateway.img/WorldSelect/BtDot/normal/0#"  


var status = 0;

function start() {
	status = -1;
	action(1, 0, 0);
}

function action(mode, type, selection) {
	if (mode == -1) {
		cm.dispose();
	} else {
		if (mode == 0 && status == 0) {
			cm.dispose();
			return;
		}
		if (mode == 1)
			status++;
		else
			status--;
		if (status == 0) {
        	var text="#e#r "+"      " +q6+"   请认真选择以下套装   "+q6+" #n\r\n";
			text+="#b#L19#"+zh5+"#b旋涡防具饰品#r[11件套]#l\r\n";
			text+="#b#L20#"+zh5+"#b旋涡未解封#r[武器装备]#l\r\n";
			text+="#b#L21#"+zh5+"#b旋涡.专用卷轴.#r解封卷#l\r\n";
			cm.sendSimple(text);
		} else if (status == 1){
			switch (selection) {
				case 19:
				cm.dispose();
				cm.openNpc(0, "旋涡防具饰品");
				break;
				case 20:
				cm.dispose();
				cm.openNpc(0, "旋涡未解封");
				break;
				case 21:
				cm.dispose();
				cm.openNpc(0, "旋涡专用卷轴");
				break;	
				default:
				cm.sendOk("管理员正在准备中.请期待");
				cm.dispose();
			}
		}
	}
}